﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WFForm.Master" AutoEventWireup="true" CodeBehind="ComApproval.aspx.cs" Inherits="WF.Web.Pages.Workflow.KQ.ComApproval" %>
<%@ MasterType VirtualPath="~/WFForm.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Other_head" runat="server">
    <base target="_self" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Path" runat="server">
考勤申请审批 > <asp:Label ID="lblCurrentActivityName" runat="server" Text="审批"></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Main" runat="server">
    <div class="bodyarea" style="width:610px;">
        <!--审批内容开始-->
        <div class="ititle"><h4>考勤申请审批</h4></div>  
        <div class="inputform">        
        <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" 
            EnableModelValidation="True" DefaultMode="Edit" Width="100%" DataKeyNames="ID" >            
            <EditItemTemplate>
               <table width="610px" border="0">
				<%--<tr>
					<td>
					<table >--%>
						<tr>
							<td align="left" style="WIDTH: 230px"><IMG alt="" src="../../../images/logo.gif" id="Logo" height="53" width="119"></td>
							<td width=""><img src="../../../images/icon.gif"  height="36">
							<font color="#006600" size="3"><strong>考勤申请单</strong></font></td>
						</tr>
					<%--</table>
					</td>
				</tr>--%>
				<tr>
					<td colspan="2">
					</td>
				</tr>
				<tr>
					<td height="24" align="left">
						<asp:Label id="lblErrorDescription" runat="server"></asp:Label>&nbsp;</td>
				</tr>
				<%--<tr>
					<td align="center"><table width="600" class="tbnoborder">--%>
							<tr>
								<td align="left" colspan="2">部门
									<asp:TextBox id="K2TextBox1" runat="server" Width="136px" CssClass="inputs" DESIGNTIMEDRAGDROP="1879"
										ReadOnly="True" Text='<%# Bind("DeptName") %>' ></asp:TextBox>
								申请人
								
									<asp:TextBox id="K2TextBox2" runat="server" Width="97px" CssClass="inputs" DESIGNTIMEDRAGDROP="1882"
										ReadOnly="True" Text='<%# Bind("ApplicantName") %>'></asp:TextBox>
								申请时间
								
									<asp:TextBox id="K2TextBox3" runat="server" Width="154px" CssClass="inputs" ReadOnly="True"
								       Text='<%# Bind("ApplyRegisterDate") %>'  ></asp:TextBox></td>
							</tr>
						<%--</table>
					</td>
				</tr>--%>
				<%--<tr>
					<td align="center"><table width="600" class="tbnoborder">--%>
							<tr>
								<td align="left" colspan="2">本人2&nbsp;
									<asp:TextBox id="K2TextBox4" runat="server" Width="96px" CssClass="inputs" DESIGNTIMEDRAGDROP="1891"
										ReadOnly="True" Text='<%# Bind("ApplicantName") %>' ></asp:TextBox>
									因&nbsp;
									<asp:TextBox id="K2TextBox5" runat="server" Width="240px" CssClass="inputs" ReadOnly="True"
									   Text='<%# Bind("ApplyReason") %>'	></asp:TextBox>
									申请&nbsp;
									<asp:TextBox id="K2TextBox6" runat="server" Width="96px" CssClass="inputs" ReadOnly="True" Text='<%# Bind("HoliDayTypeName") %>'></asp:TextBox>
									，</td>
							</tr>
						<%--</table>
					</td>
				</tr>--%>
				<%--<tr>
					<td align="center"><table width="600" border="0">--%>
							<tr>
								<td align="left" colspan="2">
									从&nbsp;
									<asp:TextBox id="txtDatetimeFrom" runat="server" Width="160px" CssClass="inputs" DESIGNTIMEDRAGDROP="1981" Text='<%# Eval("ApplyDateFrom","{0:yyyy-MM-dd}") %>'></asp:TextBox><asp:TextBox ID="txtHoursFrom" runat="server" Text='<%# Bind("HourFrom") %>' CssClass="inputs" style="width:30px;" ></asp:TextBox>时&nbsp;<asp:TextBox ID="txtMinute" runat="server" CssClass="inputs"  style="width:30px" Text='<%# Bind("MinuteFrom") %>'>分</asp:TextBox>至
									<asp:TextBox id="txtDatetimeTo" runat="server" Width="160px" CssClass="inputs"
										Text='<%# Eval("ApplyDateTo","{0:yyyy-MM-dd}") %>'></asp:TextBox><asp:TextBox ID="txtHoursTo" runat="server" Text='<%# Bind("HourTo") %>' CssClass="inputs" style="width:30px;"  ></asp:TextBox>时&nbsp;<asp:TextBox ID="txtMinuteTo" runat="server" Text='<%# Bind("MinuteTo") %>' style="width:30px;" CssClass="inputs" >分</asp:TextBox>
								</td>
							</tr>
						<%--</table>
					</td>
				</tr>--%>
				<%--<tr>
					<td align="center"><table width="600" border="0">--%>
							<tr>
								<td align="left" colspan="2">共&nbsp;
									<asp:TextBox id="K2TextBox9" runat="server" Width="72px" CssClass="inputs" DESIGNTIMEDRAGDROP="1983"
										ReadOnly="True" Text='<%# Bind("ApplyDays") %>' ></asp:TextBox>
									天， （&nbsp;
									<asp:TextBox id="K2TextBox10" runat="server" Width="72px" CssClass="inputs" ReadOnly="True"
										 Text='<%# Bind("ApplyHours") %>' ></asp:TextBox>
									小时）， 请批准。
									<asp:TextBox id="txtApprovalResult" runat="server" Width="97px" CssClass="inputs" ReadOnly="True"
										DataField="ProcXML: ApprovalResult" Visible="False"></asp:TextBox>
									<asp:TextBox id="txtCurrentActivityName" runat="server" DataField="ProcData: CurrentActivityName"
										ReadOnly="True" CssClass="inputs" Width="97px" Visible="False"></asp:TextBox></td>
							</tr>
                            <tr>
                                <td>
                                   <asp:HyperLink ID="lnkView" runat="server" CssClass="bluelink">查看附件</asp:HyperLink><asp:HiddenField ID="txtFlowID" runat="server" Value='<%# Bind("ID") %>' />
                                </td>
                            </tr>
						<%--</table>
					</td>   
				</tr>--%>
                </table>                                    
            </EditItemTemplate>                             
        </asp:FormView>
        
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            DataObjectTypeName="WF.Model.KQApplyEntity" 
            SelectMethod="GetKQApplyEntityByID" 
            TypeName="WF.ViewModels.Workflow.KQApply.KQApprovalVM"
            UpdateMethod="UpdateKQApply">            
        <SelectParameters> 
            <asp:Parameter  Name="ID" DefaultValue="123" />
        </SelectParameters>
        </asp:ObjectDataSource>  
        </div> 
        <!--审批内容结束-->
        <!--审批历史开始-->
        <div class="blank10"></div>
        <div class="ititle"><h4>审批历史记录：</h4></div>                
        <div class="dataGrid">
        <asp:ListView ID="dataListView" runat="server" DataSourceID="" DataKeyNames=""
            EnableModelValidation="true" >
            <LayoutTemplate>
                <table cellspacing="0" class="Grid">
                    <tr>
                        <th width="17%">
                            步骤名称
                        </th>
                        <th width="16%">
                            审批时间
                        </th>
                        <th width="16%">
                            审批人员
                        </th>
                        <th width="16%">
                            审批人帐号
                        </th>                        
                        <th width="16%">
                            审批结果
                        </th>    
                        <th width="16%">
                            备注
                        </th>                                         
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>                        
                        <%# Eval("ActivityName")%>
                    </td>
                    <td>
                        <%# Eval("ApprovalTime","{0:yyyy-MM-dd HH:mm:ss}")%>&nbsp;
                    </td>                    
                    <td>
                        <%# Eval("Name" )%>&nbsp;
                    </td>
                    <td>
                        <%# Eval("DomainAccount")%>&nbsp;
                    </td>
                    <td>
                        <%# Eval("ApprovalResult")%>&nbsp;
                    </td>  
                    <td>
                        <%# Eval("ApprovalComment")%>&nbsp;
                    </td>                                     
                </tr>
            </ItemTemplate>
            <EmptyItemTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td>
                            没有数据!
                        </td>
                    </tr>
                </table>
            </EmptyItemTemplate>
        </asp:ListView>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="GetDepartmentsAdjustListByCondition" 
            TypeName="WF.ViewModels.DepartmentAffair.DepartmentAffairListVM">            
        </asp:ObjectDataSource>
        </div>  
        <!--审批历史结束-->
        <!--审批处理开始-->
        <div class="blank10"></div>      
        <div class="ititle"><h4>审批处理：</h4></div>        
        <div class="inputform">
        <table>
        <tr>
            <th>
                审批意见
            </th>
            <td align="center">
                <asp:TextBox ID="txtComAuditComment" runat="server" TextMode="MultiLine" Height="72px"
                    CssClass="necessaryarea1" Width="543px" validateCondition="title=审批意见;isNecessary=1;isNumber=0;isDate=0;isDateYYYYMMDD=0;isTime=0;isShortTime=0;isRate=0;isInt=0"
                    MaxLength="500"></asp:TextBox>
            </td>
        </tr>
        <tr runat="server" id="trHrAuditor" visible="false">
            <th>
                区域
            </th>
            <td align="left">
                <asp:RadioButtonList ID="rblHrAuditor" runat="server" RepeatColumns="4"
                    RepeatDirection="Horizontal" Width="543px">
                    <asp:ListItem Value="dqfz">浦东住宅部</asp:ListItem>
                    <asp:ListItem Value="xqfz">西区住宅部</asp:ListItem>
                    <asp:ListItem Value="bqfz">北区住宅部</asp:ListItem>
                    <asp:ListItem Value="sjfz">松江住宅部</asp:ListItem>
                    <asp:ListItem Value="gspfz">工商铺部</asp:ListItem>
                    <asp:ListItem Value="xmfz">项目部</asp:ListItem>
                    <asp:ListItem Value="szfz">苏州事业部</asp:ListItem>
                </asp:RadioButtonList>
                <asp:TextBox id="txtIsKQAuditDeptManager" runat="server" Visible="false"></asp:TextBox>
                <asp:TextBox id="txtBillTypeSubCode" runat="server" Visible="false"></asp:TextBox>
            </td>
        </tr>
        <tr runat="server" id="trComAuditResult">
            <th>
                审批结果
            </th>
            <td align="center">
                <asp:RadioButtonList ID="rblComAuditResult" runat="server" 
                    RepeatDirection="Horizontal" Width="543px">
                    <asp:ListItem Value="1" Selected="True">通过</asp:ListItem>
                    <asp:ListItem Value="0">拒绝</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="tdSpace" colspan="6">
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Button ID="btnSubmit" runat="server" Text="提交审批" CssClass="submit1" OnClick="btnSubmit_Click">
                </asp:Button>                    
            </td>
        </tr>
    </table>
        </div>  
        <!--审批处理结束-->
    </div>
</asp:Content>
